package net.mikoo.seals.agent.biz.mapper.client;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import net.mikoo.seals.agent.model.Company;
import net.mikoo.seals.agent.model.CompanyQuery;

@MapperScan
public interface CompanyMapper {
	
	Integer insert(Company company);
	
	Integer update(Company company);
	
	Company selectInfoById(Long companyId);
	
	List<Company> selectByQueryToPage(CompanyQuery query);
	
	Integer countByQueryToPage(CompanyQuery query);
	
	Company selectInfoByQuery(CompanyQuery query);
	
	Integer delete(Company company);

	Integer updateManagerAccount(@Param("companyId")Long companyId, @Param("userLoginId")String userLoginId);

	List<Company> selectListByQuery(CompanyQuery query);
}
